/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.myhome;

import java.io.Serializable;
import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Inject;
import javax.inject.Named;

/**
 *
 * @author Renato
 */

@Named
@ConversationScoped
public class ControladorSoftware implements Serializable{

    private boolean showCBCD;
    
    @Inject
    private Conversation conversation;
    
    
    private void iniciarConversacao(){
        if(!conversation.isTransient()){
            conversation.end();
        }
        conversation.begin();
    }
    
    
    public void apresentarCBCD(){
        this.showCBCD=true;
    }
    
    public boolean isShowCBCD(){
        return showCBCD;
    }
}
